using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using SpringWaterDataAccess;
using Utilities;

namespace sow
{
	/// <summary>
	/// Summary description for fenleimulu.
	/// </summary>
	public partial class fenleimulu : System.Web.UI.Page
	{
		protected System.Web.UI.HtmlControls.HtmlTable table81;
	
		protected void Page_Load(object sender, System.EventArgs e)
		{
			if (!IsPostBack) 
			{
				// Put user code to initialize the page here
				int catID = 1;
				if(null != Request.Params.Get("muluid"))
				{
					catID = int.Parse(Request.Params.Get("muluid"));
				}

				ForumDataAccess fdb = new ForumDataAccess();

				int totals;
				
				// Get all the articles to publish first
				DataSet myDataSet = fdb.getPosts(index.USER_ARTICLES_PUBLISH,0,0,0,
					0,0,out totals,
                    "blog", "", catID, "CreateDate DESC");

				//Label1.Text=Helper.getCategoryFromID(catID.ToString());
				//SQLAccess da = new SQLAccess();
				//DataSet myDataSet = da.getWordsByCategoryID(catID);
				Repeater2.DataSource = myDataSet.Tables[0].DefaultView;
				Repeater2.DataBind();	
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    

		}
		#endregion
	}
}
